<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button>跳转</button>
    <script src="./jquery.js"></script>
    <script>
      $("button").click(function () {
        // setTimeout(() => {
        //   window.location.search =
        //     "?ms=zhanye-app-iOSlist&salesCode=212002100&policyNo=&appName=&insrntName=&beginDate=2024-09-01&endDate=2024-09-06&policyAppNo=&queryType=All";
        // });
        console.log(window.location.search);
        arrTempDatas = '11111888'
        var search = window.location.search;
        if (search.indexOf("appName") > -1) {
          var newSearch = search.replace("appName=", "appName=" + arrTempDatas);
          window.history.replaceState({}, "", newSearch);
          console.log(search);
        }
      });

    </script>
  </body>
</html>
